<?php


namespace App\Admin\Actions\Post;


use Dcat\Admin\Grid;
use Dcat\Admin\Grid\LazyRenderable;
class WxUser extends LazyRenderable
{
    public function grid():Grid
    {
        return Grid::make(new \App\Models\WxUser(), function (Grid $grid) {
            $grid->column('id')->sortable();
            $grid->column('user_image')->image();
            $grid->column('user_name');
            $grid->column('created_at');
            $grid->column('updated_at')->sortable();

            $grid->filter(function (Grid\Filter $filter) {
                $filter->equal('id');

            });
        });
    }
}
